<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>角色</title>
    <link rel="stylesheet" href="css/zui.min.css">
    <!-- <link rel="stylesheet" href="css/role.css"> -->
</head>
<body>
<h2 class="text-center">角色管理</h2>
<div class="container">
    <div class="container">
        <div class="row">

        </div>
        <div id="container">
            <div class="row"></div>
            <div class="text-right">
                <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#mySmModal" >添加新角色</button>
        </div>

    </div>
    <table class="table table-bordered text-center" style="margin-top: 50px">
        <tr>
            <td>id</td>

            <td>角色</td>
            
            <td>操作</td>
        </tr>
        <tbody id="tbody">
        <!-- 数据1 -->
        <tr>
            <td>1</td>

            <td>管理员</td>
            

            <td>
                <button class="btn btn-primary btn-sm">编辑</button>
                <button class="btn btn-danger btn-sm">删除</button>

            </td>
            </td>
        </tr>
        <!-- 数据2 -->
        <tr>
            <td>2</td>
           
            <td>管理员</td>
            

            <td>
                <button class="btn btn-primary btn-sm">编辑</button>
                <button class="btn btn-danger btn-sm">删除</button>
             <!--   <button class="btn btn-warning btn-sm">禁用</button>
                <button class="btn btn-primary btn-sm">重置密码</button> -->
            </td>
            </td>
        </tr>
        
        

        </tbody>
    </table>
        <ul class="pager"  id="myPager" data-ride="pager" data-max-nav-count="4" data-elements="prev_icon,nav,next_icon" ></ul>
</div>




</div>
</div>
</div>
</div>
<!--幕布-->
<div class="modal fade" id="mySmModal">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">关闭</span></button>
                <h4 class="modal-title">标题</h4>
            </div>
            <div class="modal-body">
                <p>
                <div class="input-control has-icon-left">
                    <input id="rolename" type="text" class="form-control" placeholder="角色名">
                    <label for="rolename" class="input-control-icon-left"><i class="icon icon-user "></i></label>
                </div>
                </p>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal" onclick="cancle()">关闭</button>
                <button type="button" class="btn btn-primary" onclick="backinsert()" id="backinsert">确认</button>
            </div>
        </div>
    </div>
</div>

    <div class="modal fade" id="uprole">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">关闭</span></button>
                    <h4 class="modal-title">标题</h4>
                </div>
                <div class="modal-body">
                    <p>
                    <div class="input-control has-icon-left">
                        <input id="text_name" type="text" class="form-control" placeholder="角色名">
                        <label for="text_name" class="input-control-icon-left"><i class="icon icon-user "></i></label>
                    </div>
                    </p>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal" onclick="cancle()">关闭</button>
                    <button type="button" class="btn btn-primary" id="exit" onclick="roleupdate()">确认</button>
                </div>
            </div>
        </div>
    </div>
<!--遮罩-->
<div class="modal fade"id="deleteccj" >
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span class="sr-only">关闭</span></button>
                <h4 class="modal-title" style="text-align: center">账号删除</h4>
            </div>
            <div class="modal-body" style="text-align: center">
                <p>
                    <a id="ccjnumber"></a>
                </p>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal" >关闭</button>
                <button type="button" class="btn btn-primary" onclick="dsshow()" id="yesdel">删除</button>
            </div>
        </div>
    </div>
</div>
</body>


<script src="js/jquery-2.1.4.js"></script>
<script src="js/zui.min.js"></script>
<script src="Userjs/role.js"></script>

</html>

